package com.zmm.util.document.wjl;

import com.zmm.util.document.IdoInfo;
import com.zmm.util.document.IdoParam;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 海王定制参数
 * @author 900045
 * @description:
 * @name IdoSelfItem
 * @date By 2021-10-26 20:16:48
 */
@Data
public class IdoSelfItem implements Serializable {
	
	private static final long serialVersionUID = -4622845597113158590L;

	private String code;

	private String version;

	private String methodName;
	
	private String classNamePath;
	
	private IdoInfo idoInfo;

	private List<IdoParam> reqParams;

	private List<IdoParam> respParams;
	

	public void addReqParam(IdoParam param) {
		if(reqParams == null) {
			reqParams = new ArrayList<>();
		}
		reqParams.add(param);
	}

	public void addRespParam(IdoParam param) {
		if (respParams == null) {
			respParams = new ArrayList<>();
		}
		respParams.add(param);
	}
}
